package com.cn.mmd.service;

import com.cn.mmd.model.CustomEvaluation;
import com.cn.mmd.model.StudentCustomEvaluation;

import java.util.List;

/**
 * Created by Administrator on 2016/11/29.
 */
public interface StudentCustomEvaluationService {

    /**
     * 添加点赞信息
     * @param record
     * @return
     */
    int insertSelective(StudentCustomEvaluation record);

    /**
     * 根据不同的条件查询不同的结果
     * @param record
     * @return
     */
    List<StudentCustomEvaluation> selectBy(StudentCustomEvaluation record);

    /**
     * 根据id删除点赞
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Integer id);

    /**
     *根据id删除自己的评论
     * @param customevaluationid
     * @return
     */
    int deleteByPrimaryKeyC(Integer customevaluationid);

    /**
     *根据id查看评论
     * @param customevaluationid
     * @return
     */
    CustomEvaluation selectByPrimaryKeyC(Integer customevaluationid);

    /**
     * 查看自定义评论列表根据点赞
     * @param customEvaluation
     * @return
     */
    List<CustomEvaluation> selectAllByLikeNum(CustomEvaluation customEvaluation);

    /**
     * 动态修改数据
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(CustomEvaluation record);
}
